# -*- coding: utf-8 -*-
from src.com.ydzy.util.base_util import BaserUtil

init_param=\
{
    "logType": "99",
    "sysId": "",
    "type": "01",
    "name": "基础日志策略系统Z",
    "desc": "基础日志策略系统Z",
    "auditStatus": "1",
    "status": "1",
    "fieldInfos": [
        {
            "sortNum": 1,
            "relType": "01",
            "showOpt": "01,02,03",
            "pageOptJson": {
                "field": "logId",
                "type": "input",
                "label": "日志标识"
            },
            "id": 781,
            "fieldName": "logId",
            "fieldZh": "日志标识",
            "fieldType": "string",
            "fieldFormat": "",
            "fieldDesc": "日志标识类型",
            "isInternal": "1",
            "isMust": "1",
            "validateType": "02",
            "dataRule": "Z_dataRule01",
            "ruleReverse": "0",
            "expression": "",
            "usageOpt": "01",
            "blockType": "01",
            "mustAdvise": "日志标识完整性检查项",
            "ruleAdvise": "日志标识规则性检查项",
            "mustScore": 1,
            "ruleScore": 1,
            "queryOpt": "",
            "pageOpt": "{\"field\":\"logId\",\"type\":\"input\",\"label\":\"日志标识\"}",
            "status": "1",
            "createTime": "2024-05-30 15:04:44",
            "updateTime": "2024-05-30 16:16:21"
        },
        {
            "sortNum": 2,
            "relType": "01",
            "showOpt": "01,02,03",
            "pageOptJson": {
                "field": "operateType",
                "type": "select",
                "label": "操作类型",
                "optionKey": "code",
                "optionName": "content",
                "dictType": "z_operate_type"
            },
            "id": 778,
            "fieldName": "operateType",
            "fieldZh": "操作类型",
            "fieldType": "string",
            "fieldFormat": "",
            "fieldDesc": "操作类型类型",
            "isInternal": "1",
            "isMust": "1",
            "validateType": "02",
            "dataRule": "Z_dataRule02",
            "ruleReverse": "0",
            "expression": "code@audit_dict@type='z_operate_type'",
            "usageOpt": "01",
            "blockType": "01",
            "mustAdvise": "操作类型完整性检查项",
            "ruleAdvise": "操作类型规则性检查项",
            "mustScore": 1,
            "ruleScore": 1,
            "queryOpt": "",
            "pageOpt": "{\"fieldId\":778,\"field\":\"operateType\",\"type\":\"select\",\"label\":\"操作类型\",\"optionKey\":\"code\",\"optionName\":\"content\",\"dictType\":\"z_operate_type\"}",
            "status": "1",
            "createTime": "2024-05-30 14:29:24",
            "updateTime": "2024-05-30 16:10:15"
        },
        {
            "sortNum": 3,
            "relType": "01",
            "showOpt": "01,02,03",
            "pageOptJson": {
                "field": "operateId",
                "type": "select",
                "label": "功能模块",
                "optionKey": "code",
                "optionName": "content",
                "dictType": "z_operate_id"
            },
            "id": 779,
            "fieldName": "operateId",
            "fieldZh": "功能模块",
            "fieldType": "string",
            "fieldFormat": "",
            "fieldDesc": "功能模块类型",
            "isInternal": "1",
            "isMust": "1",
            "validateType": "02",
            "dataRule": "Z_dataRule03",
            "ruleReverse": "0",
            "expression": "code@audit_dict@type='z_operate_id'",
            "usageOpt": "01",
            "blockType": "01",
            "mustAdvise": "功能模块完整性检查项",
            "ruleAdvise": "功能模块规则性检查项",
            "mustScore": 1,
            "ruleScore": 1,
            "queryOpt": "",
            "pageOpt": "{\"fieldId\":779,\"field\":\"operateId\",\"type\":\"select\",\"label\":\"功能模块\",\"optionKey\":\"code\",\"optionName\":\"content\",\"dictType\":\"z_operate_id\"}",
            "status": "1",
            "createTime": "2024-05-30 14:36:29",
            "updateTime": "2024-05-30 16:10:15"
        },
        {
            "sortNum": 4,
            "relType": "01",
            "showOpt": "01,02,03",
            "pageOptJson": {
                "field": "operateTime",
                "type": "input",
                "label": "操作时间"
            },
            "id": 780,
            "fieldName": "operateTime",
            "fieldZh": "操作时间",
            "fieldType": "string",
            "fieldFormat": "",
            "fieldDesc": "操作时间类型",
            "isInternal": "1",
            "isMust": "1",
            "validateType": "02",
            "dataRule": "Z_dataRule04",
            "ruleReverse": "0",
            "expression": "^\\d{10}$",
            "usageOpt": "01",
            "blockType": "01",
            "mustAdvise": "操作时间完整性检查项",
            "ruleAdvise": "操作时间规则性检查项",
            "mustScore": 1,
            "ruleScore": 1,
            "queryOpt": "",
            "pageOpt": "{\"fieldId\":780,\"field\":\"operateTime\",\"type\":\"input\",\"label\":\"操作时间\"}",
            "status": "1",
            "createTime": "2024-05-30 14:42:59",
            "updateTime": "2024-05-30 16:10:15"
        },
        {
            "sortNum": 5,
            "relType": "01",
            "showOpt": "01,02,03",
            "pageOptJson": {
                "field": "operateOBJAccountType",
                "type": "select",
                "label": "操作人员账号类型",
                "optionKey": "code",
                "optionName": "content",
                "options": [
                    {
                        "code": "1",
                        "content": "主账号"
                    },
                    {
                        "code": "0",
                        "content": "子账号"
                    }
                ]
            },
            "id": 782,
            "fieldName": "operateOBJAccountType",
            "fieldZh": "操作人员账号类型",
            "fieldType": "string",
            "fieldFormat": "",
            "fieldDesc": "操作人员账号类型类型",
            "isInternal": "1",
            "isMust": "1",
            "validateType": "02",
            "dataRule": "Z_dataRule05",
            "ruleReverse": "0",
            "expression": "[01]",
            "usageOpt": "01",
            "blockType": "01",
            "mustAdvise": "操作人员账号类型完整性检查项",
            "ruleAdvise": "操作人员账号类型规则性检查项",
            "mustScore": 1,
            "ruleScore": 1,
            "queryOpt": "",
            "pageOpt": "{\"fieldId\":782,\"field\":\"operateOBJAccountType\",\"type\":\"select\",\"label\":\"操作人员账号类型\",\"optionKey\":\"code\",\"optionName\":\"content\",\"options\":[{\"code\":\"1\",\"content\":\"主账号\"},{\"code\":\"0\",\"content\":\"子账号\"}]}",
            "status": "1",
            "createTime": "2024-05-30 15:14:52",
            "updateTime": "2024-05-30 16:10:15"
        },
        {
            "sortNum": 6,
            "relType": "01",
            "showOpt": "01,02,03",
            "pageOptJson": {
                "field": "operateCondition",
                "type": "input",
                "label": "操作条件"
            },
            "id": 784,
            "fieldName": "operateCondition",
            "fieldZh": "操作条件",
            "fieldType": "string",
            "fieldFormat": "",
            "fieldDesc": "操作条件类型",
            "isInternal": "1",
            "isMust": "1",
            "validateType": "02",
            "dataRule": "Z_dataRule06",
            "ruleReverse": "0",
            "expression": "",
            "usageOpt": "01",
            "blockType": "01",
            "mustAdvise": "操作条件完整性检查项",
            "ruleAdvise": "操作条件规则性检查项",
            "mustScore": 1,
            "ruleScore": 1,
            "queryOpt": "",
            "pageOpt": "{\"fieldId\":784,\"field\":\"operateCondition\",\"type\":\"input\",\"label\":\"操作条件\"}",
            "status": "1",
            "createTime": "2024-05-30 16:00:00",
            "updateTime": "2024-05-30 16:10:15"
        },
        {
            "sortNum": 7,
            "relType": "01",
            "showOpt": "01,02,03",
            "pageOptJson": {
                "field": "operateDesc",
                "type": "input",
                "label": "操作描述"
            },
            "id": 785,
            "fieldName": "operateDesc",
            "fieldZh": "操作描述",
            "fieldType": "string",
            "fieldFormat": "",
            "fieldDesc": "操作描述类型",
            "isInternal": "1",
            "isMust": "1",
            "validateType": "02",
            "dataRule": "Z_dataRule07",
            "ruleReverse": "0",
            "expression": "",
            "usageOpt": "01",
            "blockType": "01",
            "mustAdvise": "操作描述完整性检查项",
            "ruleAdvise": "操作描述规则性检查项",
            "mustScore": 1,
            "ruleScore": 1,
            "queryOpt": "",
            "pageOpt": "{\"field\":\"operateDesc\",\"type\":\"input\",\"label\":\"操作描述\"}",
            "status": "1",
            "createTime": "2024-05-30 16:14:26",
            "updateTime": "2024-05-30 16:14:26"
        },
        {
            "sortNum": 8,
            "relType": "01",
            "showOpt": "01,02,03",
            "pageOptJson": {
                "field": "operateOBJ",
                "type": "input",
                "label": "操作人员Id"
            },
            "id": 786,
            "fieldName": "operateOBJ",
            "fieldZh": "操作人员Id",
            "fieldType": "string",
            "fieldFormat": "",
            "fieldDesc": "操作人员Id类型",
            "isInternal": "1",
            "isMust": "1",
            "validateType": "02",
            "dataRule": "Z_dataRule08",
            "ruleReverse": "0",
            "expression": "",
            "usageOpt": "01",
            "blockType": "01",
            "mustAdvise": "操作人员Id完整性检查项",
            "ruleAdvise": "操作人员Id规则性检查项",
            "mustScore": 1,
            "ruleScore": 1,
            "queryOpt": "",
            "pageOpt": "{\"field\":\"operateOBJ\",\"type\":\"input\",\"label\":\"操作人员Id\"}",
            "status": "1",
            "createTime": "2024-05-30 16:17:31",
            "updateTime": "2024-05-30 16:17:31"
        },
        {
            "sortNum": 9,
            "relType": "01",
            "showOpt": "01,02,03",
            "pageOptJson": {
                "field": "operateName",
                "type": "input",
                "label": "操作人员姓名"
            },
            "id": 787,
            "fieldName": "operateName",
            "fieldZh": "操作人员姓名",
            "fieldType": "string",
            "fieldFormat": "",
            "fieldDesc": "操作人员姓名类型",
            "isInternal": "1",
            "isMust": "1",
            "validateType": "02",
            "dataRule": "Z_dataRule09",
            "ruleReverse": "0",
            "expression": "",
            "usageOpt": "01",
            "blockType": "01",
            "mustAdvise": "操作人员姓名完整性检查项",
            "ruleAdvise": "操作人员姓名规则性检查项",
            "mustScore": 1,
            "ruleScore": 1,
            "queryOpt": "",
            "pageOpt": "{\"field\":\"operateName\",\"type\":\"input\",\"label\":\"操作人员姓名\"}",
            "status": "1",
            "createTime": "2024-05-30 16:18:13",
            "updateTime": "2024-05-30 16:18:13"
        },
        {
            "sortNum": 10,
            "relType": "01",
            "showOpt": "01,02,03",
            "pageOptJson": {
                "field": "operateOrg",
                "type": "input",
                "label": "操作人员所属单位"
            },
            "id": 788,
            "fieldName": "operateOrg",
            "fieldZh": "操作人员所属单位",
            "fieldType": "string",
            "fieldFormat": "",
            "fieldDesc": "操作人员所属单位",
            "isInternal": "1",
            "isMust": "1",
            "validateType": "02",
            "dataRule": "Z_dataRule10",
            "ruleReverse": "0",
            "expression": "",
            "usageOpt": "01",
            "blockType": "01",
            "mustAdvise": "操作人员所属单位完整性检查项",
            "ruleAdvise": "操作人员所属单位规则性检查项",
            "mustScore": 1,
            "ruleScore": 1,
            "queryOpt": "",
            "pageOpt": "{\"field\":\"operateOrg\",\"type\":\"input\",\"label\":\"操作人员所属单位\"}",
            "status": "1",
            "createTime": "2024-05-30 16:19:02",
            "updateTime": "2024-05-30 16:19:02"
        },
        {
            "sortNum": 11,
            "relType": "01",
            "showOpt": "01,02,03",
            "pageOptJson": {
                "field": "operateOrgname",
                "type": "input",
                "label": "操作人员所属单位名称"
            },
            "id": 789,
            "fieldName": "operateOrgname",
            "fieldZh": "操作人员所属单位名称",
            "fieldType": "string",
            "fieldFormat": "",
            "fieldDesc": "操作人员所属单位名称",
            "isInternal": "1",
            "isMust": "1",
            "validateType": "02",
            "dataRule": "Z_dataRule11",
            "ruleReverse": "0",
            "expression": "",
            "usageOpt": "01",
            "blockType": "01",
            "mustAdvise": "操作人员所属单位名称完整性检查项",
            "ruleAdvise": "操作人员所属单位名称规则性检查项",
            "mustScore": 1,
            "ruleScore": 1,
            "queryOpt": "",
            "pageOpt": "{\"field\":\"operateOrgname\",\"type\":\"input\",\"label\":\"操作人员所属单位名称\"}",
            "status": "1",
            "createTime": "2024-05-30 16:19:30",
            "updateTime": "2024-05-30 16:19:30"
        },
        {
            "sortNum": 12,
            "relType": "01",
            "showOpt": "01,02,03",
            "pageOptJson": {
                "field": "operateIdCard",
                "type": "input",
                "label": "操作人员身份证号"
            },
            "id": 790,
            "fieldName": "operateIdCard",
            "fieldZh": "操作人员身份证号",
            "fieldType": "string",
            "fieldFormat": "",
            "fieldDesc": "操作人员身份证号",
            "isInternal": "1",
            "isMust": "1",
            "validateType": "02",
            "dataRule": "Z_dataRule12",
            "ruleReverse": "0",
            "expression": "^[1-9]\\d{5}(18|19|20)\\d{2}((0[1-9])|(1[0-2]))(([0-2][1-9])|10|20|30|31)\\d{3}[0-9Xx]$",
            "usageOpt": "01",
            "blockType": "01",
            "mustAdvise": "操作人员身份证号完整性检查项",
            "ruleAdvise": "操作人员身份证号规则性检查项",
            "mustScore": 1,
            "ruleScore": 1,
            "queryOpt": "",
            "pageOpt": "{\"field\":\"operateIdCard\",\"type\":\"input\",\"label\":\"操作人员身份证号\"}",
            "status": "1",
            "createTime": "2024-05-30 16:20:15",
            "updateTime": "2024-05-30 16:20:46"
        },
        {
            "sortNum": 13,
            "relType": "01",
            "showOpt": "01,02,03",
            "pageOptJson": {
                "field": "terminalType",
                "type": "input",
                "label": "终端类型"
            },
            "id": 791,
            "fieldName": "terminalType",
            "fieldZh": "终端类型",
            "fieldType": "string",
            "fieldFormat": "",
            "fieldDesc": "终端类型",
            "isInternal": "1",
            "isMust": "0",
            "validateType": "02",
            "dataRule": "Z_dataRule13",
            "ruleReverse": "0",
            "expression": "^[1-9]\\d{5}(18|19|20)\\d{2}((0[1-9])|(1[0-2]))(([0-2][1-9])|10|20|30|31)\\d{3}[0-9Xx]$",
            "usageOpt": "01",
            "blockType": "01",
            "mustAdvise": "终端类型完整性检查项",
            "ruleAdvise": "终端类型规则性检查项",
            "mustScore": 1,
            "ruleScore": 1,
            "queryOpt": "",
            "pageOpt": "{\"field\":\"terminalType\",\"type\":\"input\",\"label\":\"终端类型\"}",
            "status": "1",
            "createTime": "2024-05-30 16:21:42",
            "updateTime": "2024-05-30 16:21:42"
        },
        {
            "sortNum": 14,
            "relType": "01",
            "showOpt": "01,02,03",
            "pageOptJson": {
                "field": "browserInfo",
                "type": "input",
                "label": "浏览器标识"
            },
            "id": 792,
            "fieldName": "browserInfo",
            "fieldZh": "浏览器标识",
            "fieldType": "string",
            "fieldFormat": "",
            "fieldDesc": "浏览器标识",
            "isInternal": "1",
            "isMust": "1",
            "validateType": "02",
            "dataRule": "Z_dataRule14",
            "ruleReverse": "0",
            "expression": "",
            "usageOpt": "01",
            "blockType": "01",
            "mustAdvise": "终端类型完整性检查项",
            "ruleAdvise": "终端类型规则性检查项",
            "mustScore": 1,
            "ruleScore": 1,
            "queryOpt": "",
            "pageOpt": "{\"field\":\"browserInfo\",\"type\":\"input\",\"label\":\"浏览器标识\"}",
            "status": "1",
            "createTime": "2024-05-30 16:22:30",
            "updateTime": "2024-05-30 16:22:51"
        },
        {
            "sortNum": 15,
            "relType": "01",
            "showOpt": "01,02,03",
            "pageOptJson": {
                "field": "terminalId",
                "type": "input",
                "label": "终端硬件唯一标识"
            },
            "id": 793,
            "fieldName": "terminalId",
            "fieldZh": "终端硬件唯一标识",
            "fieldType": "string",
            "fieldFormat": "",
            "fieldDesc": "终端硬件唯一标识",
            "isInternal": "1",
            "isMust": "0",
            "validateType": "02",
            "dataRule": "Z_dataRule15",
            "ruleReverse": "0",
            "expression": "",
            "usageOpt": "01",
            "blockType": "01",
            "mustAdvise": "终端硬件唯一标识完整性检查项",
            "ruleAdvise": "终端硬件唯一标识规则性检查项",
            "mustScore": 1,
            "ruleScore": 1,
            "queryOpt": "",
            "pageOpt": "{\"field\":\"terminalId\",\"type\":\"input\",\"label\":\"终端硬件唯一标识\"}",
            "status": "1",
            "createTime": "2024-05-30 16:23:17",
            "updateTime": "2024-05-30 16:23:17"
        },
        {
            "sortNum": 16,
            "relType": "01",
            "showOpt": "01,02,03",
            "pageOptJson": {
                "field": "terminalIp",
                "type": "input",
                "label": "终端唯一标识IP"
            },
            "id": 794,
            "fieldName": "terminalIp",
            "fieldZh": "终端唯一标识IP",
            "fieldType": "string",
            "fieldFormat": "",
            "fieldDesc": "终端唯一标识IP",
            "isInternal": "1",
            "isMust": "0",
            "validateType": "02",
            "dataRule": "Z_dataRule16",
            "ruleReverse": "0",
            "expression": "^(25[0-5]|2[0-4]\\d|[0-1]?\\d?\\d)\\.(25[0-5]|2[0-4]\\d|[0-1]?\\d?\\d)\\.(25[0-5]|2[0-4]\\d|[0-1]?\\d?\\d)\\.(25[0-5]|2[0-4]\\d|[0-1]?\\d?\\d)$|(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]+|::(ffff(:0{1,4})?:)?((25[0-5]|(2[0-4]|1?[0-9])?[0-9])\\.){3}(25[0-5]|(2[0-4]|1?[0-9])?[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1?[0-9])?[0-9])\\.){3}(25[0-5]|(2[0-4]|1?[0-9])?[0-9]))",
            "usageOpt": "01",
            "blockType": "01",
            "mustAdvise": "终端唯一标识IP完整性检查项",
            "ruleAdvise": "终端唯一标识IP规则性检查项",
            "mustScore": 1,
            "ruleScore": 1,
            "queryOpt": "",
            "pageOpt": "{\"field\":\"terminalIp\",\"type\":\"input\",\"label\":\"终端唯一标识IP\"}",
            "status": "1",
            "createTime": "2024-05-30 16:27:06",
            "updateTime": "2024-05-30 16:27:06"
        },
        {
            "sortNum": 17,
            "relType": "01",
            "showOpt": "01,02,03",
            "pageOptJson": {
                "field": "result",
                "type": "select",
                "label": "操作结果",
                "optionKey": "code",
                "optionName": "content",
                "options": [
                    {
                        "code": "1",
                        "content": "成功"
                    },
                    {
                        "code": "0",
                        "content": "失败"
                    }
                ]
            },
            "id": 795,
            "fieldName": "result",
            "fieldZh": "操作结果",
            "fieldType": "string",
            "fieldFormat": "",
            "fieldDesc": "操作结果",
            "isInternal": "1",
            "isMust": "0",
            "validateType": "02",
            "dataRule": "Z_dataRule17",
            "ruleReverse": "0",
            "expression": "[01]",
            "usageOpt": "01",
            "blockType": "01",
            "mustAdvise": "操作结果完整性检查项",
            "ruleAdvise": "操作结果规则性检查项",
            "mustScore": 1,
            "ruleScore": 1,
            "queryOpt": "",
            "pageOpt": "{\"field\":\"result\",\"type\":\"select\",\"label\":\"操作结果\",\"optionKey\":\"code\",\"optionName\":\"content\",\"options\":[{\"code\":\"1\",\"content\":\"成功\"},{\"code\":\"0\",\"content\":\"失败\"}]}",
            "status": "1",
            "createTime": "2024-05-30 16:29:51",
            "updateTime": "2024-05-30 16:30:02"
        },
        {
            "sortNum": 18,
            "relType": "01",
            "showOpt": "01,02,03",
            "pageOptJson": {
                "field": "userTokenHash",
                "type": "input",
                "label": "用户令牌"
            },
            "id": 796,
            "fieldName": "userTokenHash",
            "fieldZh": "用户令牌",
            "fieldType": "string",
            "fieldFormat": "",
            "fieldDesc": "用户令牌",
            "isInternal": "1",
            "isMust": "0",
            "validateType": "02",
            "dataRule": "Z_dataRule18",
            "ruleReverse": "0",
            "expression": "[01]",
            "usageOpt": "01",
            "blockType": "01",
            "mustAdvise": "用户令牌完整性检查项",
            "ruleAdvise": "用户令牌规则性检查项",
            "mustScore": 1,
            "ruleScore": 1,
            "queryOpt": "",
            "pageOpt": "{\"field\":\"userTokenHash\",\"type\":\"input\",\"label\":\"用户令牌\"}",
            "status": "1",
            "createTime": "2024-05-30 16:31:18",
            "updateTime": "2024-05-30 16:31:18"
        },
        {
            "sortNum": 19,
            "relType": "01",
            "showOpt": "01,02,03",
            "pageOptJson": {
                "field": "appTokenHash",
                "type": "input",
                "label": "应用令牌"
            },
            "id": 797,
            "fieldName": "appTokenHash",
            "fieldZh": "应用令牌",
            "fieldType": "string",
            "fieldFormat": "",
            "fieldDesc": "应用令牌",
            "isInternal": "1",
            "isMust": "0",
            "validateType": "02",
            "dataRule": "Z_dataRule19",
            "ruleReverse": "0",
            "expression": "[01]",
            "usageOpt": "01",
            "blockType": "01",
            "mustAdvise": "应用令牌完整性检查项",
            "ruleAdvise": "应用令牌规则性检查项",
            "mustScore": 1,
            "ruleScore": 1,
            "queryOpt": "",
            "pageOpt": "{\"field\":\"appTokenHash\",\"type\":\"input\",\"label\":\"应用令牌\"}",
            "status": "1",
            "createTime": "2024-05-30 16:31:54",
            "updateTime": "2024-05-30 16:31:54"
        }
    ]
}



